#set($title = "智能会议预定系统-自由选择模式")
<div class="tab-content">
    <div>
        <span class="span5"><span class="span2">搜索     : </span><span class="span2"><input id="filter" type="text"/></span></span><span class="span5"><span class="span2">Lync : </span><span class="span2">
                <select class="filter-lync selectpicker  ">
                    <option sql="">全部</option>
                    <option sql=" and  hasLync=1 " value="是">是</option>
                    <option sql=" and  hasLync=0 " value="否">否</option>
                </select>
            </span></span>
        <span class="span5"><span class="span2">计算机: </span><span class="span2">
                <select class="filter-it selectpicker  ">
                    <option sql="">全部</option>
                    <option sql=" and  hasIt=1 " value="是">是</option>
                    <option sql=" and  hasIt=0 " value="否">否</option>
                </select>
            </span></span>
        <span class="span5"><span class="span2">电话    : </span><span class="span2">
                <select class="filter-phone selectpicker  ">
                    <option sql="">全部</option>
                    <option sql=" and  hasPhone=1 " value="是">是</option>
                    <option sql=" and  hasPhone=0 " value="否">否</option>
                </select>
            </span></span>
        <span class="span5"><span class="span2">电视    : </span><span class="span2">
                <select class="filter-tv selectpicker  ">
                    <option sql="">全部</option>
                    <option sql=" and  hasTv=1 " value="是">是</option>
                    <option sql=" and  hasTv=0 " value="否">否</option>
                </select>
            </span></span>
			 <span class="span5"><span class="span2">楼层    : </span><span class="span2">
                <select class="filter-floor selectpicker  ">
                    <option sql="">全部</option>
                    <option sql=" and  floor=1 " value="1">一楼</option>
                    <option sql=" and  floor=2 " value="2">二楼</option>
					 <option sql=" and  floor=3 " value="3">三楼</option>
                    <option sql=" and  floor=4 " value="4">四楼</option>
					 <option sql=" and  floor=5 " value="5">五楼</option>
                    <option sql=" and  floor=6 " value="6">六楼</option>
                </select>
            </span></span>
			 <span class="span5"><span class="span2">期数    : </span><span class="span2">
                <select class="filter-building selectpicker  ">
                    <option sql="">全部</option>
                    <option sql=" and  building=1 " value="1">一期</option>
                    <option sql=" and  building=2 " value="2">二期</option>
                </select>
            </span></span>
			 <span class="span5"><span class="span2">人数    : </span><span class="span2">
                <select class="filter-maxNums selectpicker  ">
                    <option sql="">全部</option>
                    <option sql=" and  maxNums>=5 " value="5">小型</option>
                    <option sql=" and  maxNums>=10 " value="10">中等</option>
					<option sql=" and  maxNums>=20 " value="20">大型</option>
                </select>
            </span></span>
        <span class="span5"><a href="#clear" class="clear-filter" title="clear filter">[清除搜索条件]</a></span>
    </div>
    <br/>
    <table class="footable table" data-filter="#filter" data-page-size="10" data-page-previous-text="上一页" data-page-next-text="下一页" data-page-navigation=".pagination">
        <thead>
            <tr>
                <th data-hide="all">
                    会议室ID
                </th>
                <th data-sort-initial="true" data-toggle="true">
                    会议室名称
                </th>
                <th data-type="numeric" data-hide="phone">
                    会议室楼层
                </th>
                <th data-type="numeric">
                    Lync
                </th>
                <th data-type="numeric">
                    计算机
                </th>
                <th data-type="numeric">
                    电话
                </th>
                <th data-type="numeric">
                    电视
                </th>
                <th>
                    最大容纳数
                </th>
                <th data-hide="all" data-sort-ignore="true">
                    描述
                </th>
				<th>操作</th>
            </tr>
        </thead>
        <tbody>
            #foreach($meeting in $meetingTool.getAllMeeting($session.getAttribute("user").getUserRight()))
            <tr meetingId="$meeting.getId()">
                <td>
                    $meeting.getId()
                </td>
                <td>
                    $meeting.getMeetingName()
                </td>
                <td>
                    $meeting.getFloor()
                </td>
                <td data-value="$meeting.getHasLync()">
                    #judge($meeting.getHasLync())
                </td>
                <td data-value="$meeting.getHasIt()">
                    #judge($meeting.getHasIt())
                </td>
                <td data-value="$meeting.getHasPhone()">
                    #judge($meeting.getHasPhone())
                </td>
                <td data-value="$meeting.getHasTv()">
                    #judge($meeting.getHasTv())
                </td>
                <td data-value="$meeting.getMaxNums()">
                    $meeting.getMaxNums()
                </td>
                <td>
                    $!meeting.getRemark()
                </td>
				<td><button class='ui-button-primary book' onclick='revert(this)' meetingid='$meeting.getId()'>预订</button></td>
            </tr>
            #end
        </tbody>
        <tfoot>
            <tr>
                <td colspan="8">
                    <div class="pagination pagination-centered">
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
</div>
#parse("/status/_revert.html")
<script type="text/javascript">
    $(function(){
		$('.footable').footable();
		
		$("tfoot tr td").show();
    });
</script>
